package unrelated;
import java.net.*;
import java.io.*;
import java.util.*;

public class HelloURL {
    public static String website = "http://www.cs.purdue.edu/homes/droberts/CS180/Fall2011/index.html";
    
    public static void main (String[] args) {
        URL site = null;
        InputStream content = null;
        try {
            site = new URL(website);
            content = site.openStream();
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
        
        Scanner sc = new Scanner(content);
        while (sc.hasNext()) {
            System.out.println(sc.nextLine());
        }
    }
}